package com.example.redislock;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;

/**
 * @Description:
 * @Author: dengping.xu
 * @Data: 2021-08-02
 */
@Data
@Accessors(chain = true)
public class User implements Serializable{
    private String name;
    private String sex;

    public static void main(String[] args) {
        /*ArrayList<String> objects = new ArrayList<>();
        objects.add("hello");
        objects.add("world");
        String s = JSON.toJSONString(objects);
        System.out.println(s);
        System.out.println("---------------");
        JSONArray objects1 = JSON.parseArray(s);
        System.out.println(objects1.get(0));*/
//        System.out.println(hammingWeight(3));
    }



}
